package com.haierp.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

@TableName("wx_purchase_user")
public class WxPurchaseUser implements Serializable {
	@TableId(type = IdType.AUTO)
	private Long id;
	@TableField(value = "open_id")
	private String openId;
	@TableField(value = "union_id")
	private String unionId;
	@TableField(value = "nick_name")
	private String nickName;
	private Integer gender;
	private String city;
	private String province;
	private String country;
	@TableField(value = "avatar_url")
	private String avatarUrl;
	private Long refer;
	private Integer role;
	private Integer level;
	@TableField(value = "first_login_time")
	private Date firstLoginTime;
	@TableField(value = "last_login_time")
	private Date lastLoginTime;
	@TableField(value = "first_login_device")
	private Long firstLoginDevice;
	@TableField(value = "last_login_device")
	private Long lastLoginDevice;
	@TableField(value = "is_valid")
	private Integer isValid;
	@TableField(value = "gmt_create")
	private Date gmtCreate;
	@TableField(value = "gmt_modify")
	private Date gmtModify;
	@TableField(exist = false)
	private String xcxCookieId;
	@TableField(exist = false)
	private String encryptedData;
	@TableField(exist = false)
	private String iv;
	@TableField(exist = false)
	private String sessionKey;
	@TableField(exist = false)
	private Long favourableId;
	@TableField(exist = false)
	private String name;
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public Long getRefer() {
		return refer;
	}

	public void setRefer(Long refer) {
		this.refer = refer;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Date getFirstLoginTime() {
		return firstLoginTime;
	}

	public void setFirstLoginTime(Date firstLoginTime) {
		this.firstLoginTime = firstLoginTime;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Long getFirstLoginDevice() {
		return firstLoginDevice;
	}

	public void setFirstLoginDevice(Long firstLoginDevice) {
		this.firstLoginDevice = firstLoginDevice;
	}

	public Long getLastLoginDevice() {
		return lastLoginDevice;
	}

	public void setLastLoginDevice(Long lastLoginDevice) {
		this.lastLoginDevice = lastLoginDevice;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getXcxCookieId() {
		return xcxCookieId;
	}

	public void setXcxCookieId(String xcxCookieId) {
		this.xcxCookieId = xcxCookieId;
	}

	public String getEncryptedData() {
		return encryptedData;
	}

	public void setEncryptedData(String encryptedData) {
		this.encryptedData = encryptedData;
	}

	public String getIv() {
		return iv;
	}

	public void setIv(String iv) {
		this.iv = iv;
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public Long getFavourableId() {
		return favourableId;
	}

	public void setFavourableId(Long favourableId) {
		this.favourableId = favourableId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getIsValid() {
		return isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}

	@Override
	public String toString() {
		return "WxUser [xcxCookieId=" + xcxCookieId + ", id=" + id + ", openId=" + openId + ", unionId=" + unionId
				+ ", nickName=" + nickName + ", gender=" + gender + ", city=" + city + ", province=" + province
				+ ", country=" + country + ", avatarUrl=" + avatarUrl + ", refer=" + refer + ", role=" + role
				+ ", level=" + level + ", firstLoginTime=" + firstLoginTime + ", lastLoginTime=" + lastLoginTime
				+ ", firstLoginDevice=" + firstLoginDevice + ", lastLoginDevice=" + lastLoginDevice + ", gmtCreate="
				+ gmtCreate + ", gmtModify=" + gmtModify + "]";
	}
}
